package com.fsl.springbootdesignpattern.k_chain;

public class UnitePriceHandler {

    public static PriceHandler getPriceHandler(){
        // 设置几个处理对象
        DeptManager deptManager = new DeptManager();
        CompanyManager companyManager = new CompanyManager();
        CeoManager ceoManager = new CeoManager();

        //设置责任链
        deptManager.setNextPriceHandler(companyManager);
        companyManager.setNextPriceHandler(ceoManager);
        return deptManager;
    }
}
